Use lib/db in web