Get vote post working with database