split package, create db connector class and listener.