Init db and app