Added error checking paste all, fixed bug

Fixed bug in metabolites table due to incorrect syntax in sql statement