add users table and user_id field on galleries to database