Implemented methods to retrieve data from DB

* implemented methods
* tested them

Signed-off-by: Martinas Mihaela <martinas.mihaela21@gmail.com>