Fix database issue, add user resources