save rep, posts and votes into the db