CS474 database