easy mysql implementation using raw sql