Divided projects into 3 projects. Added database support

Divided projects into 3 projects. Added database support