Database file loads with LoadSQLite menu item

Finally got db file to load without database locked or null error. Still
many bugs.