Make app work consistently, and connect to DB