Added primary keys to database export