interface for mysql database