Fixes the vB 4 module

#74 
Also fixed #94 and #32

I've tested the beta modules with a test database and after the changes it worked without problems