some database minor fix like auto increment