fixed bug with new pins db table