add customer function
add index to created field