Database

Created Query data class to implement Fluent interfaces and better
abstract out database interactions.