updated for production mysql db