finaly got mercury to save to database