Direct SQL usage and some ad hoc queries.