WebKit::Context::setDatabaseDirectory is not accessible via GTK binding. There's just no wrapper for it. Please add it. Thanks.
There is webkit_set_web_database_directory_path. Could that work? http://webkitgtk.org/reference/webkitgtk/stable/webkitgtk-Global-functions.html#webkit-set-web-database-directory-path