Implement storing bookmarks to the database