Altered the user SQL script to grant permissions to the correct database.