set input box with data from db