use Modern::Perl;
use Carp;
use C4::Context;
use Koha::Schema;
use base qw(Class::Accessor);
use vars qw($database);
# database connection from the data given in the current context, and
# returns it.
sub _new_schema {
require Koha::Schema;
my $context = C4::Context->new();
my $db_driver = $context->{db_driver};
-