How to add a user to a database and add privileges?