basic changes to make app work with mongoose done.