bugfix for db
remove unused