Fix #401 Database upgrade failed when starting freeseer

Signed-off-by: Thanh Ha <thanh.ha@alumni.carleton.ca>