Add production database.
Fix erroneous query.