Add new table 'recent' to library databse.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@743 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Add method for fetching library book by path.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@744 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Baseline functionality for migrating recent information.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@745 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Table recent must be created also when not migrating.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@746 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Add new collection storing recently opened books.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@747 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Implement clear and clear_all methods again.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@748 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Add functions to get and set last-read page for a book.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@749 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Library database connection does not return tuple for one column.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@750 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Reimplement getting last read page and date using _Book.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@751 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Reimplement method to set recent page for books.

If the book isn't in the library yet, it will be added to the
'Recent' collection.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@752 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Fix wrong method calls and invalid variables in LastReadPage.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@753 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Close library database connection when program quits.

Instead of closing the library database whenever the library
main window closes, only close it at program exit. This way,
the reference to the backend cannot get lost, and it truly
becomes a singleton that gets instantiated whenever needed.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@754 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Avoid endless recursive loop during migration.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@755 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Avoid renaming or removing the Recent collection.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@756 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Do not allow Recent collection to be dragged/dropped.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@757 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Delete legacy lastread database after migration.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@758 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Simplify "Store info about recent files" preference.

Either store no information, or store both recently read path
and page in library database.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@759 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Wrong conditional to check for page <= 1 (None <= 1 => True)

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@760 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Add book to Recent collection when opened and already in library.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@761 6cf541bf-b722-4a7c-9fc0-fb1e75421f59
Completely remove books from library when cleaning up recent books.

git-svn-id: https://mcomix.svn.sourceforge.net/svnroot/mcomix@762 6cf541bf-b722-4a7c-9fc0-fb1e75421f59