store created package in database