adjust project for mysql, create models for legacy db