Fix problem with permissions in the database using CLI