Added DB init sql file
Db class fixes
Init classes to class/config/i18n loading, connect to DB and set vars in the registers