Fixed some db stuff, will update docs soon aswell