Rewritten the database adapter code in order to support php serialization.