Added possibility of creating custom queries.
Added WHERE statement for queries.