Used get_entity_id function instead of sql RETURNING statement

2 jobs for feature/check_sqlite_version in 1 minute and 13 seconds (queued for 1 second)