Converting Dao / code for transition to MySql