Move MD5s to database

This increases the speed of securekey load.  Only on first write will the page take a few secs to load.  On next loads it will be much faster.
Only bug is that this writes the initial md5 multiple times into the database.  Reason is unknown.