migration scripts and making JPA inline with old schema