fix db script, added to registration