Update app run to connect to db