Change enum declaration to ctypedef instead of cdef
Be able to specify whether we want the database in local or remote mode open
Add a method for closing the package database