outsourced 'Graphics'. added mysql structure