Refactoring sql lib, removing colors