Make post take values from database