added mySQL error translation, tests. Updated docs.