Changed way db.Types is imported

So that it works for SPOD macros and on the client side