added message querying to user/data.js