Implemented saving new record in database

Signed-off-by: Michael Zemsky <zmike808@gmail.com>