enhancement / fixes on kdb function interface

. moved etc/q.q to cfg/dbstore.q
. integrated more kdb fumction calls
. added unit test.
. split tick and hist db disk locations
. in memory tick updates, flush tables to disk on exit
. fixes to getOhlcM1PriceHistory