DB Query Builder and Abstraction layer