Added initial framework for databse