fix casses to store on database