Check if there is already a record

Signed-off-by: Yuri Tománek <yuri@tomanek.com.au>