Load core libs before spec support files

* Use LOG_PATH in support/db.rb
Merge pull request #1 from as-cii/as-require-file-utils

Load core libs before spec support files.
Use ActiveRecord to generate queries for specs