This function returns column names marked as primary_key.
formatted – (bool) : will return in form [<int:id>]
key_names (list) – a list of keys is returned