Started working on database code