changing findById for external databases