Added DB stuff
Added migrations support