fixing log location for production and database scripts