added handling of initial app initialization (creating sqllite file)