Move repositories and DbPost into db package