Fixed user permissions in the sql script.