Database methods for userstories 8,9 work