started converting class to databases and more
added some json responses and more db updates