Db config, new db scrip, models and some small stuff