Added lowercase support for db