OSNG-10 - extended db schema and added unit tests, started to implement doa layer