changing database keys to lowercase only