Fixed :id passage to database