Very basic database io.