refacter(sql): integrating gorm, cleaning up client