make view post actually use the database