Query for last closes
Merge branch 'feature_database'