moves database startup to application startup