Add migration

-- Add user_id to posts
-- Minor bugs fixed