[technical] add getDatabaseName
[technical] apply dev patchs to db, for testing purpose