[TASK] Reorganized database compiler class