How to get data from DB to fill some fields automaticaly?