optimized user table and user profile table creation