Database methods for userstories 1,2,4 work