clean up of db structure after adding stored procedure support