Added db init
Added db boilerplate
Fix
Fixed DB problems.