Move prepared statements definitions and queries to adequate modules