Created class DatabaseQuery