added DB functionality
DB has been extended.