made many changes and added order table in database