I think it might be helpful to add 'IF EXISTS' to both the create user and create tables lines to help if the database isn't fully set up.