Fixed database dropping script and removed crazy code from rtd script.