Add optional database argument to Form.new

This allows the database to be manually passed in to the constructor,
removing the necessity to re-fetch it from the API later if the
database has already been loaded.