Reanme and cleanup rter sql setup script
Moved resources out of templates