Extracted mysql interface