Correction of DB structure and scripts for registration