added thread system, added temp thread,added connection to database, able to run services