Added basic DB integration

Recent works a bit