changed username references in database to IDs instead of strings