make app work well with an empty new db