Partially done: DB for WP

I looked for another way to have methods for both W8 and WP but found
nothing stable so far. So i'll have the DB for WP working tonight