datastore updated to get columns from front end, error status code enhanced