Manually pass database to form in Database#forms

Prevents re-fetching the database from the form.