Implemented saving & retrieving dives to / from DB.

Signed-off-by: Andrey Zhdanov <andrjufka@gmail.com>