corrected plumbing to mysql db.