Run database script and chown