Added more functionality for packages and update DB