Fix database error and release 0.9.1