core: GraphicsInfo db persistence part

(cleanup of deprecated columns is in separate cleanup patch)

Change-Id: I5a129454fc64aa34493b0495fb76f22f3d667e14
Signed-off-by: Frantisek Kobzik <fkobzik@redhat.com>
Bug-Url: https://bugzilla.redhat.com/1033547