Add Item.getWeight
Minor cleanup
Use max_allowed_packet in DBInsert

Use max packet length from MySQL in DBInsert class to know when it is
appropriate to execute the query
Remove old comment in Database class
Lua changes

You can now access Creature & Item userdata with these keys, "itemid",
"uid", "actionid" and "type".

Item.transform should not debug the client when setting the id to 0, it
does nothing in that case now.
Merge pull request #1062 from ninjalulz/itemGetWeight

Add Item.getWeight
Initial commit for non-blocking SQL queries
Optimize playerdeath.lua
More stuff for non-blocking SQL queries (lua)
Small fix
Remove unused variable
Callbacks for any async database function
Use non-blocking SQL queries to check for expired market offers
Fix __index

Metamethods must be defined each time its used.