remove database login and add production checks