updated db schema
created database model
config update
fixed config
more fixes