Core/DBLayer: multiple fixes

*Fixed .list item command crash
*Fixed Mail system issues
*Fixed petitions crashes
*Fixed faction/race change
*Fixed WP loading query