Fixed bug which caused db:setup to fail (start_date and end_date replaced with term).