Trying to get database delete working