Added unique functionality to CrudDatabase, fixed CrudDatabsdre thanks to unit tests