posts and gets working, storing and retrieving from database