transactions into db

async and shit