DB functionality added