initializeapp.py for db