update dbinit script
delete unused handlers
update indexhandler