Split pacman database into a different module