Implemented Bug Management

Implemented bug management, create additional database functionality
(update,delete), re-organised file structure, updated main API handler