set up database and correction of some spring configuration issues