Connected phone app to database