added basic db model
added basetest class
added simple db test
added sql tests to travis
added more fields to models