Added "status" command to query db on files' status