database: return -1 when init fails