replace database query with parent call