Extremely basic database io.