adds user reference in posts table