OK. So I read in my grammar, Dative case is used also with impersonal verbs to express the state or situation where a person is and gives the example: Мне не спиться = I can't sleep.
Thank you all.