[databases] Use current user ID if none is given when indexing

This will generate files for the current user like all other
files generated when using beat/beat.cmdline>

Fixes #78
4 jobs for 78_run_db_index_under_non_root_user in 3 minutes and 51 seconds (queued for 8 seconds)