server-side database query added