Added the queries to the dbi class.