Added checks for if user or databases exist before trying to create them