Added some more unit tests for the built-in database methods