Moved database dependency to shared lib.