Removed database call for MD5 hash

Of course the database call is slower than recalculating the MD5 hash