begin filling out snap api
able to save snaps to database
refactor