Fix manage.py createdb command

Variable db need app init.
Replace postgresql with sqlite when testing