Configured beans and database.
Added db support.