Set database in app file