initialized db and added secret keys