updated a bunch of things for the database