Fixed manage command that builds the database.