Refactors, mysql select, insert, delete implemented