database stuff while adding to db

I have enough for today