add app and db