Next, when I try to add media, it says it does not have enough permissions even though I've granted full permissions to the database user.
I cannot change the wp-content folder to 777 from security point of view.