refactor create user table sql