db tables we not using the prototype correctly