Enable multiple databases for tests

Test against sqlite3, mysql or postgresql using
DB=[sqlite|mysql|postgres] with sqlite being the default