Added initial database code