Remove debug stub preventing script execution. Fix invocation of refresh_database script.