model user using raw sql query type