Procedure needs a database