added the user database and added user id to pins