make some test skip if database is sqlite

title is all
Duplicated expressions: `app.config['DATABASE_ENGINE']`.  Refactor these expressions into a variable.