remote auto increment from database