change repo as a CPAN module, and implement db keyword using DBI