added database export

- database can now be exported