added designs model
fixed the database bug
think I fixed a PG server unable to send error
fixed PG errors, building out design index