Added a test for Database::execAndGet()