[IMP] Improved package validation, more information saving to database