Defines API for database access (like Perl's DBI)