setup database and use env variables for secret keys in prodction