Is it possible to link a database to a condition