oneline writing to db