change behaviour of db_delete to accept wildcard *

This does not work yet, only deletes the first file found :(