db stuff for vm