can write to database