app works but with in memory db