ignore iml files
use prepared statements
minor refactor