Continued work on search() method

The search method works now but is very slow for some reason. Also, I've
written a script to convert the old txt file database entries into the
new SQL database structure.