Added db indices

Signed-off-by: anrim <a@rimbe.net>