Modernize parts of the database code
Created attachment 243930 [details] Patch
Committed r177873: <http://trac.webkit.org/changeset/177873>