Some code...

It works. Now I will try to implement if entry already exists, but i just broke it... :D