starts database on pageload, then inits app