automated DB connection and app restart on decelopment