Require exact database name matches

See http://stackoverflow.com/a/16783253