before_filter :require_user, :only => [:new, :edit]
before_filter :check_database_readable
before_filter :check_database_writable, :only => [:new, :edit]
before_filter :require_user, :only => [:new, :edit]
before_filter :check_database_readable
before_filter :check_database_writable, :only => [:new, :edit]