ERROR: database is being accessed by other users DETAIL: There is 1 other session using the database. code example
Example: ERROR: database "backend" is being accessed by other users DETAIL: There are 3 other sessions using the database.
sudo service postgresql restart