Yes they do do keep people in jail on misdemeanors, jay walking, spent 37 days in jail then charges were dropped.  I had to bail myself out.
There is no mental health services in jail, other than to admit an inmate is mentally ill.