Change database table names to be compatible with front-end