Restructured project. Added database module.