write first version of DB interface