Add generic database interface in UC1 to support different storage types Closes #343 See merge request !238