interactions with database all working