Modified Bean Wiring for library Database