Tanslate class based on mysql database