Changed where stmt to regex
Added error handling to entry deletion