Added function to read database user version
Added function to set database user version
Added automatic schema updating

Fixes #1