Openfire multithreading

Does openfire runs each request in separate thread (application pool??)?

Should I take care about perfomance when I open connection to database from IQ handler or Interceptor ?

Should I open connectiong to database in separate thread (pool)?

Thanks.