Added a function and sql quetsions for    "check if author exist
if author does not exist insert author."