Twisted async db

DO NOT MERGE YET