Xrays/Plain film

New functions in functions.php

Ajax call after insert

TEST:
From start:
1. if the data will be deleted
2. if the new data is inserted
3. if on error we log the error
4. on success if it prints out the message

TO DO:
On success also log the action