Some common sql queries for common things