fix: missing indexes are added to improve postgresql performance Co-authored-by: TwiN <twin@linux.com>