fixed create_table_if_exists flag in template for database, fixed several tests related with the former
Merge branch 'master' of github.com:DamnWidget/mamba