Changes to implement DB

changes to implement DB