Replaces SQL scripts directory outside the App
Reverts back redundant added url prefix in rerout methods
Fixes bug with different agent_id field