improve dbi performance by prepared statement