remove thing from database function