This document presents a new approach for ranking query results from web databases called Query and User Dependent Ranking. The approach considers two aspects: query similarity, which accounts for different users having similar queries, and user similarity, which accounts for different queries having similar user preferences. A prototype application was built to test the model. Empirical results found the approach to be efficient and suitable for real-world applications. The approach uses a workload file that is updated with ranking functions as new queries are made to track user and query similarities over time.