[BUGFIX] Cast return value of postProcessDatabaseInsert to integer