database: whoopy doopy

don't worry, i did the same mistake on stack overflow yesterday and had to switch some stuff, but it's all fixed ok