structure n actions to databases index