correct set path to DBFILE
use of BASEDIR constant, do nothin in init() at the moment
enable foreign keys in SQLite
merge tables
track db file