Unit-testing and improvements on ORDER BY clause

More work on unit-testing on SELECT command.
Reworked order function of DatabaseQuery: now it supports array of
columns and the order method (ASC or DESC) is applied on per field name.