Fixed the sql paths
Updated version