added unique ids and some more database implementations