Lightweight universal DB wrapper